package com.homework13;

import java.io.File;

public class demo {
    public static void main(String[] args) {
        File file = new File("D:\\a");
        dg(file);
    }

    private static void dg(File file) {
        File[] files = file.listFiles();
        for (File file1 : files) {
            if(file1.isFile()){
                System.out.println(file1.getAbsolutePath());
            }else {
                dg(file1);
            }
        }
    }
}
